package com.woniuxy.config;

import com.woniuxy.interceptor.AuthPermInterceptor;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * @Author: 邓宇昂
 * @Description: 拦截器的配置类
 * @DateTime: 22/12/09/0009 15:54
 * @Component: 成都蜗牛学苑
 **/
@Configuration
public class InterceptorConfiguration implements WebMvcConfigurer {
    @Override
    public void addInterceptors(InterceptorRegistry registry) {
        registry.addInterceptor(new AuthPermInterceptor());
    }
}
